/**
 * Created by ex-chenjt on 2017/4/14.
 */

import Alert from "./components/alert/index"

const components = [
	Alert
];

function install(Vue) {
	if (install.installed) return;
	components.forEach(function(component) {
		Vue.component(component.name, component);
	})
}

if (typeof window != "undefined" && window.Vue) {
	install(Vue);
}